package lab02.test15;

public class Test15 {
    public static void main(String[] args) {
        Graduate Zhangsan = new Graduate();
        Zhangsan.name = "张三";
        Zhangsan.gender = "男";
        Zhangsan.age = 18;
        Zhangsan.fee = 8000;
        Zhangsan.pay = 6000;

        System.out.println("姓名：" + Zhangsan.name);
        System.out.println("性别：" + Zhangsan.gender);
        System.out.println("年龄：" + Zhangsan.age);
        if (Zhangsan.getPay() - Zhangsan.getFee() < 2000) {
            System.out.println("You need a loan!");
        } else {
            System.out.println("You income is enough！");
        }

    }
}
